﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using Ext.Net;

namespace ERP.Modules
{
    public partial class ViewInventory : System.Web.UI.UserControl
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!X.IsAjaxRequest)
            {
                GetData(txtSearch.Text);
            }
        }

        protected void StoreViewInventory_RefreshData(object sender, StoreReadDataEventArgs e)
        {
            
        }

        protected void ViewInventoryDblClick(object sender, DirectEventArgs e)
        {
            
        }

        protected void Search_Event(object sender, DirectEventArgs e)
        {
            
        }

        void GetData(string search)
        {
            StoreViewInventory.DataSource = BLL.ViewInventory_BLL.SelectData(search);
            StoreViewInventory.DataBind();
        }
    }
}